import type { RouteRecordRaw } from 'vue-router'
import ForgotPassword from '../features/auth/pages/ForgotPassword.vue'
import Login from '../features/auth/pages/Login.vue'
import Register from '../features/auth/pages/Register.vue'
import ChatPage from '../features/chat/pages/ChatPage.vue'
import Welcome from '../features/welcome/pages/Welcome.vue'

const routes: RouteRecordRaw[] = [
  { path: '/auth/login', name: 'auth.login', component: Login },
  { path: '/auth/register', name: 'auth.register', component: Register },
  { path: '/auth/forgot-password', name: 'auth.forgotpassword', component: ForgotPassword },
  { path: '/chat', name: 'chat', component: ChatPage, meta: { requiresAuth: true } },
  { path: '/chat-page', name: 'chat-page', component: ChatPage, meta: { requiresAuth: true } },
  { path: '/welcome', name: 'welcome', component: Welcome, meta: { requiresAuth: true } },
  { path: '/', redirect: '/auth/login' }
]

export default routes
